package com.ynyyrj.position.service;

import com.ynyyrj.position.mapper.PositionMapper;
import com.ynyyrj.position.pojo.position;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

@Service
public class PosImplement implements PosService{

    @Autowired
    PositionMapper positionMapper;

    @Override
    public List<String> selectAllPosition() {
        return positionMapper.selectAllPosition();
    }

    @Override
    public int selectId(String name) {
        return positionMapper.selectId(name);
    }

    @Override
    public int add(position position) {
        return positionMapper.add(position);
    }

    @Override
    public int update(position position) {
        return positionMapper.update(position);
    }

    @Override
    public int delete(String name) {
        return positionMapper.delete(name);
    }

    @Override
    public String selectName(String name) {
        return positionMapper.selectName(name);
    }
}

